Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WaitForActivation optimizations #5396

Merged
merged 25 commits into from
Apr 20, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Apr 12, 2020

Part of #5268, this PR completes the beacon node server side of WaitForActivation improvements, removing the unneeded Eth1 RPC calls for active validators.

Also modifies what roles are what to improve UX, notably the UNKOWN and DEPOSITED statuses show much more useful information than they used to.

Contains minor validator changes, mainly testing.

@0xKiwi 0xKiwi requested a review from a team as a code owner April 12, 2020 06:49
@codecov
Copy link

codecov bot commented Apr 14, 2020

Codecov Report

Merging #5396 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5396   +/-   ##
=======================================
  Coverage   19.00%   19.00%           
=======================================
  Files         238      238           
  Lines       20323    20323           
=======================================
  Hits         3862     3862           
  Misses      15866    15866           
  Partials      595      595           

depositsLock sync.RWMutex
chainStartDeposits []*ethpb.Deposit
chainstartPubkeys map[string]bool
chainstartPubkeysLock sync.RWMutex
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing because the only calling function already has a lock.

@0xKiwi 0xKiwi changed the title WaitForActivation optimizations WaitForActivation optimizations and UX improvements Apr 14, 2020
@0xKiwi 0xKiwi changed the title WaitForActivation optimizations and UX improvements WaitForActivation optimizations Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants